/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 魔方公式查看器核心样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.cube-viewer {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 800px;
    text-align: center;
}

#category-selector {
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
    background-color: white;
}

.cube-container {
    position: relative;
    margin: 20px auto;
    background-repeat: no-repeat;
    /* background-size: 200% 200%; */
    /* transition: all 0.3s ease; */
    max-width: 80%;
    max-height: 80vh;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
    transform-origin: left center;
}

.cube-container.flipping {
    animation: flipPage 0.6s ease-in-out;
}

@keyframes flipPage {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    50% {
        transform: rotateY(90deg);
        opacity: 0.5;
        box-shadow: 20px 0 30px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
}

.cube-viewer p {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
    font-style: italic;
}

.cube-container {
    background-image: url('cfop.webp');
    background-repeat: no-repeat;
    border: 2px solid #333;
    margin-bottom: 1rem;
}

.cube-viewer p {
    color: #333;
    font-size: 1.2rem;
    font-family: Arial, sans-serif;
}
